//版心宽度
$cententWidth:1240px;

//***** 头部轮播图 + 二级导航 *****//
.MZ_header {
    width: 100%;
    height: 80px;
    background-color:#fff;
    position: relative;
   // overflow: hidden;


    //导航
    .nav {
        width: 100%;
        height: 80px;
        position: absolute;
        left: 0;
        top: 0;
        box-sizing: border-box;

        //一级导航栏
        .header_nav {
            z-index: 999;
            width: $cententWidth;
            height: 80px;
            // background-color: brown;
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;

            .log {
                width: 125px;
                height: 24px;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            .navul {
                margin-left: 47px;
                margin-right: 20px;

                li {
                    float: left;

                    a {
                        font-weight: 500;
                        font-size: 14px;
                        color: #333;
                        padding: 31px 17px 30px;

                        &:hover {
                            color: #008cff;
                        }
                    }
                }

            }

            .inputBox {
                width: 170px;
                height: 30px;
                display: flex;
                line-height: 29px;
                font-size: 12px;
                background: #fff;
                border-radius: 20px;
                border: 1px solid #999;
                box-sizing: border-box;

                input {
                    border: none;
                    outline: 0;
                    width: 127px;
                    height: 20px;
                    margin-left: 15px;
                    margin-top: 5px;
                    font-size: 12px;
                    line-height: 20px;
                    color: #333;
                }

                .icon-sousuo {
                    line-height: 29px;
                    font-size: 12px;
                    cursor: pointer;
                    
                }
            }

            .user {
                margin-left: 30px;
                position: relative;

                // &:hover .u_box {
                //     display: block;
                // }

                .u_box {
                    // display: none;
                    z-index: 999;
                    width: 98px;
                    border-radius: 2px;
                    background-color: #fff;
                    position: absolute;
                    left: 50%;
                    margin-left: -48px;
                    top: 35px;
                    box-shadow: 0 0 5px rgba($color: gray, $alpha: 0.4);

                    .meizu-header-user-dropdown:after {
                        display: block;
                        content: "";
                        width: 0;
                        height: 0;
                        border: 10px solid;
                        border-color: transparent transparent #fff;
                        left: 40px;
                        top: -15px;
                        position: absolute;
                    }

                    ul {

                        li {
                            text-align: center;
                            margin: 15px auto;

                            a {
                                font-size: 12px;
                                color: #515151;

                                &:hover {
                                    color: #008cff;
                                }
                            }
                        }
                    }
                }

                .icon-yonghu {
                    font-size: 22px;
                    color: #666;
                    cursor: pointer;
                }
            }

            .spCart {
                margin-left: 15px;

                .icon-shoppingcart {
                    font-size: 30px;
                    color: #666;
                    cursor: pointer;
                }
            }
        }

        //二级导航 shadowBox
        .shadowBox {
            width: 100%;
            height: 165px;
            background-color: #fff;
            position: absolute;
            top: 80px;
            left: 0;
            z-index: 999;
            //display: none;  

            .shadow {
                       
                width: $cententWidth;
                position: absolute;
                top: 0;
                left: 50%;
                transform: translateX(-50%);

                .navList {
                    padding: 5px 10px 20px 80px;
                    display: flex;
                    justify-content: space-around;

                    .active {
                        opacity: 0.4;
                    }

                    li {
                        width: 140px;
                        height: 140px;
                        padding: 5px 5px 20px;
                        box-sizing: border-box;
                        text-align: center;
                        font-size: 12px;
                        color: #333;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;

                        img {
                            width: 100px;
                            height: 100px;
                        }
                    }
                }
            }
        }

        //二级导航 imgBox
        .imgBox {
            width: 100%;
            height: 300px;
            background-color: #fff;
            position: absolute;
            top: 80px;
            left: 0;
            z-index: 999;

            .box {
                width: $cententWidth;
                height: 300px;
                position: absolute;
                top: 0;
                left: 50%;
                transform: translateX(-50%);
                padding: 10px 0;
                box-sizing: border-box;
            }

            img {
                width: 100%;
                height: 100%;
            }
        }

    }
}